﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LinkGame.Models.Variations
{
    internal sealed class MovingDownVariation : ApplicableVariation
    {
        protected override void DoApply(Map map, Point p1, Point p2)
        {
            if (p1.X == p2.X && p1.Y > p2.Y)
            {
                MoveTilesOnPoint(map, p2, MovingDirection.Down);
                MoveTilesOnPoint(map, p1, MovingDirection.Down);
            }
            else
            {
                MoveTilesOnPoint(map, p1, MovingDirection.Down);
                MoveTilesOnPoint(map, p2, MovingDirection.Down);
            }
        }
    }
}
